import { request } from '@/utils/request'

export interface AppVersion {
  version: string
  wgtUrl: string
  pkgUrl: string
  forceUpdate: boolean
  changelog: string
}

/**
 * Get latest app version info from the server
 */
export function getAppVersion() {
  return request<AppVersion>({
    url: '/api/app/version',
    method: 'GET'
  })
} 